package cscie160.project;

import java.rmi.Naming;

public class ATMServer
{
   public static void main(String argv[])
	{
        // Create and install a security manager
        //	System.setSecurityManager(new RMISecurityManager());
		try 
		{
            ATMFactoryImpl myATMFactory = new ATMFactoryImpl();
            Naming.rebind("//localhost/atmfactory", myATMFactory);
            System.out.println("myATMFactory bound in registry");
		} 
		catch (Exception ex) 
		{
			ex.printStackTrace();
		}
	}
}
